<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language ="java" import = "com.kaishengit.util.Pager"%>
<%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix = "fn" uri = "http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<link rel="stylesheet" href="static/css/bootstrap.min.css" />
		<link rel = "stylesheet" href = "static/css/globle.css"/>
	<title></title>
</head>
<body>
 <div class="navbar navbar-fixed-top" id = "manager">
			<div class="navbar-inner">
				<div class="container">
					<a  class = "brand" href="#">项目管理系统</a>
			
				</div>
			</div>
		 </div>
	<div class="container" style = "margin-top:60px">
		<div class="row" style = "margin-top:10px">
			<div class="span3">
				<div style="padding: 8px 0;" class="well">
					<ul class="nav nav-list">
					  <li class="nav-header">apple总部项目</li>
					  <li><a href="#"><i class=" icon-home"></i>最新动态</a></li>
					  <li class="active"><a href="goal.jspx?p_id=${project.p_id }"><i class="icon-flag icon-white"></i>目标</a></li>
					  <li><a href="material.jspx"><i class="icon-folder-open"></i>资料库</a></li>
					  <li><a href ="#"><i class="icon-file"></i>文件共享</a></li>
					  <li><a href="#"><i class="icon-user"></i>联系人</a></li>
					  <li><a href="#"><i class="icon-fire"></i>想法</a></li>
					  <li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
					  <li><a href="#"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>
			</div>
			<div class = "span9">
				    
				<ul class="breadcrumb" style = "margin-top:40px;margin-bottom:0px;border-radius:3px 3px 0 0;">
						<li class = "active ">${goal.g_name }</li>
						<li style = "float:right"><i class = "icon-edit"></i><a href = "goal.jspx?_m=editGoal&gid=${g.g_id }">编辑</a></li>
				</ul>
					<div class = "well" style = "border-radius:0 0 3px 3px;background-color:white">
						<p>${goal.g_dec }</p>
						<div style="margin-bottom: 5px; margin-top:10px" class="progress progress-danger">
					        <div style="width: ${goal.g_rate}%" class="bar">已完成${goal.g_rate }%</div>
					    </div>
					    <a href="task.jspx?_m=addTask" class = "btn btn-success" style = "margin-top:15px"><i class="icon-plus icon-white"></i>添加新任务</a><br/>
					    <br/><hr/>
					    <h3>任务详情</h3>
					    <br/>
					    <c:if test="${fn:length(taskPager.result) == 0}">还没有任务，快来添加吧</c:if>
					    
					    <div style = "margin-top:8px">
					    <c:forEach items = "${taskPager.result }" var = "t" varStatus = "v">
					    	
					    	<ul class="breadcrumb" style = "margin-top:40px;margin-bottom:0px;border-radius:3px 3px 0 0;">
					    		<li class = "active "><i class = "icon-leaf"></i><a href = "task.jspx?_m=editTask&tid=${t.t_id}">${t.t_name }</a>&nbsp;&nbsp;[${t.createMember}]创建于${t.t_createTime }</li>
								<li style = "float:right"><i class = "icon-edit"></i><a href = "task.jspx?_m=editTask&tid=${t.t_id }">编辑</a></li>
							</ul>
							<div class = "well" style = "border-radius:0 0 3px 3px">
								<p>${t.t_dec}</p>
								<div style="margin-bottom: 5px; margin-top:10px" class="progress progress-danger">
							    	<div style="width:${t.t_rate}%" class="bar">已完成${t.t_rate }%</div>
							    </div>
							</div>
					    	
					    </c:forEach>
					    <%--如何获得任务的条数
					    	int count = 0; 
					    	List list = (Pager)session.getAttribute("taskPager");
					    --%>
					   
					    </div>
					    
					</div>
				
			</div>
		</div>
	</div>
</body>
</html>